#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>
int main()
{
    int i, j, t = 1;
    char s[81];
    gets(s);
    for (i = 0, j = strlen(s) - 1;i < strlen(s) / 2;i++, j--)
    {
        if (s[i] != s[j])
        {
            t = 0;
            printf("N");
            break;
        }

    }
    if (t == 1)
        printf("Y");
    return 0;
}
